package com.amigo.online.consumer.merchant.task;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SingleFileUploadFutureTask extends FutureTask<String> {

	private static final Logger logger = LoggerFactory.getLogger(SingleFileUploadFutureTask.class);
	
	public SingleFileUploadFutureTask(Callable<String> callable) {
		super(callable);
	}
	
	@Override
	protected void done() {
		
		try {
			get();
		} catch (InterruptedException | ExecutionException e) {
			logger.error("异步获取结果出错！", e);
		}
	}

}
